package cn.yhsx.jenkins.plugins.rotator;

import hudson.model.Action;

import java.util.Map;

public class RotatorAction implements Action {

    private final RotatorConfig current;
    private final RotatorConfig last;

    public RotatorAction(RotatorConfig current, RotatorConfig last) {
        this.current = current;
        this.last = last;
    }


    public RotatorConfig getCurrent() {
        return current;
    }

    public String getCurrentData() {
        return current.getCurrentData();
    }

    public Map<String, String> getCurrentParameters() {
        return current.getCurrentParams();
    }

    public RotatorConfig getLast() {
        return last;
    }


    @Override
    public String getIconFileName() {
        return null;
    }

    @Override
    public String getDisplayName() {
        return null;
    }

    @Override
    public String getUrlName() {
        return null;
    }
}